import store from '@/store'
export default {
  methods: {
    checkPermission(key) {
      const { roles } = store.state.permission
      if (roles.points.length) {
        return roles.points.some(point => point === key)
      }
    }
  }
}
